package com.cloudeasy.provider.service;

import com.cloudeasy.core.support.IService;
import com.cloudeasy.provider.model.domain.UacRoleAction;

import java.util.List;
import java.util.Set;

/**
 * Create By 郭金宝 on 2019/1/14.<br>
 */
public interface UacRoleActionService extends IService<UacRoleAction> {
    /**
     * List by role id list.
     *
     * @param roleId the role id
     *
     * @return the list
     */
    List<UacRoleAction> listByRoleId(Long roleId);

    /**
     * Delete by role id.
     *
     * @param roleId the role id
     */
    void deleteByRoleId(Long roleId);

    /**
     * Insert.
     *
     * @param roleId       the role id
     * @param actionIdList the action id list
     */
    void insert(Long roleId, Set<Long> actionIdList);

    /**
     * Delete by role id list int.
     *
     * @param roleIdList the role id list
     *
     * @return the int
     */
    int deleteByRoleIdList(List<Long> roleIdList);
}